from sqlalchemy import Column, Integer, String, Text, DateTime, func
from models.base import Base


class Content(Base):
    __tablename__ = "content"

    id = Column(Integer, primary_key=True, index=True)
    type = Column(String(50), nullable=False)  # lisu_medicine / lacquer_tree / about_us
    title = Column(String(255), nullable=False)
    content = Column(Text, nullable=False)
    created_at = Column(DateTime, default=func.now())
    updated_at = Column(DateTime, default=func.now(), onupdate=func.now())








